package com.woniu.smart.mapper;

import com.woniu.smart.dto.VisitorAccDTO;
import com.woniu.smart.entity.Access;
import com.woniu.smart.vo.AccessVO;

import java.util.List;

/**
* @author wangheng
* @description 针对表【access】的数据库操作Mapper
* @createDate 2022-10-19 19:23:47
* @Entity com.woniu.smart.entity.Access
*/
public interface AccessMapper {

    int deleteByIds(List<Integer> visitorIds);

    int deleteByPrimaryKey(Long visitorId);

    int insert(Access record);

    int insertSelective(Access record);

    int insertNewSelective(VisitorAccDTO visitorAccDTO);

    Access selectByPrimaryKey(Long id);

    /**
     * 根据汽车id查询车辆进出时间
     * @param id
     * @return
     */
    List<Access> selectByCarId(Long id);

    int updateByPrimaryKeySelective(Access record);

    int updateByPrimaryKey(Access record);

}
